Skip to content

Multi path fusion plan - #1017

Open
Melikano wants to merge 5 commits into
hw-native-sys:mainfrom
afshinarefi:multi-path-fusion-plan
Open

Multi path fusion plan#1017
Melikano wants to merge 5 commits into
hw-native-sys:mainfrom
afshinarefi:multi-path-fusion-plan

Conversation

@Melikano

Copy link
Copy Markdown
Contributor

Summary

Improve tile-fusion planning by exploring competing fusion groups instead of committing to the first acceptable DFG path.

Key changes

  • Add whole-group cost evaluation alongside existing append legality checks.

  • Reuse shared cost computation for append and group evaluation.

  • Explore multiple candidate groups, retaining up to 64 candidates per group size.

  • Rank candidates by:

    1. Whole-group cost.
    2. Group size.
    3. Stable block/node order.
  • Preserve the existing append acceptance rules and fusion metadata contract.

  • Add regression coverage for:

    • Selecting a higher-value multi-step path.
    • Stable equal-cost tie-breaking.
    • Formation of subsequent independent fusion groups.

Testing

llvm-lit -sv build/test/lit
--filter 'fusion_plan_cost_guided_(search|tie)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant